# -*- coding: utf-8 -*-

class Article:
    def __init__(self, article_id,symbol,  article_date, article_time, provider_code, headline, article_text):
        self.article_id = article_id
        self.article_text = article_text
        self.article_date = article_date
        self.article_time = article_time
        self.provide_code = provider_code
        self.headline = headline
        self.symbol = symbol

    def to_csv(self):
        return ','.join([self.article_id, self.article_date, self.article_time, self.provide_code, self.headline, self.article_text])